import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        redirect: '/log'
    },
    {
        path: '/log',
        name: 'Log',
        component: () => import(/* webpackChunkName: "about" */'../pages/log.vue')
    },
    {
        path: '/manage',
        name: 'Manage',
        component: () => import(/* webpackChunkName: "manage" */'../pages/manage.vue')
    },
    {
        path: '/auth/:id',
        name: 'Auth',
        props: true,
        component: () => import(/* webpackChunkName: "auth" */'../pages/auth.vue')
    },
    {
        path: '/outgoing/:id',
        name: 'OutGoing',
        props: true,
        component: () => import(/* webpackChunkName: "outgoing" */'../pages/outgoing.vue')
    }
]

const router = new VueRouter({
    routes
})

export default router
